package engine.systems.motion.rotateToRadius
{
	import ash.core.Component;
	import engine.utils.MathUtils;
	
	public class RotateToRadius extends Component
	{
		public var radius:Number;
		public var rate:Number;
		private var _radians:Number = 0;
		
		public function RotateToRadius(radius:Number, rate:Number = 1, radians:Number = 0)
		{
			this.radius = radius;
			this.rate = rate;
			this.radians = radians;
		}
		
		public function get radians():Number { return this._radians; }
		public function set radians(radians:Number):void
		{
			this._radians = MathUtils.toRotation(radians, false);
		}
	}
}